package io.kimmking.config;

import io.kimmking.spring01.Student;
import io.kimmking.spring02.Klass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author yky
 * @since 2021/7/29 08:55
 */
@Configuration
@ComponentScan(basePackages = "io.kimmking")
@EnableConfigurationProperties({Student.class, Klass.class})
public class CustomAutoConfiguration {

    @Bean("student100")
    public Student student() {
        return new Student();
    }
}
